//============================================================================
// Name        : tpBrazoRobot.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C, Ansi-style
//============================================================================

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <GL/glew.h>
#include "glUtils/glApplication.h"
#include "MiVentanaEdificio.h"
#include <climits>

using namespace std;

int main(int argc, char * argv[])
try {

	cwc::glApplication aplicacion(argc, argv);
	//myWindow myWin;

	//myWindow window/*(640,480)*/;
	//cwc::glutWindow glutWin(640,480);
	MiVentanaEdificio miRobot;

	//std::cout << "Float: " << sizeof(float) << std::endl;


	GLenum err = glewInit();
	if (GLEW_OK != err) {
		std::cout << "Failed to initialize GLEW!" << std::endl;
	}
	std::cout << "Using GLEW Version: " << glewGetString(GLEW_VERSION) << std::endl;

	aplicacion.run();

	puts("Hello World!!!");
	return EXIT_SUCCESS;
}
catch (const std::exception & e) {
	std::cerr << e.what() << std::endl;
}
catch (...) {
	std::cerr << "Unknown Exception" << std::endl;
}
